package com.gimi.cloud.bbp.manage.consumer.service.sys;

import com.gimi.cloud.bbp.common.utils.reqhead.Response;
import com.gimi.cloud.bbp.dto.sys.SysRoleDTO;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 角色相关的接口
 *
 * @author wbj
 * @version 1.0
 * @Description
 * @create 2018-01-26
 **/
public interface SysRoleService {

    /**
     * 获取角色列表数据
     * @param request
     * @param response
     * @param roleDTO 查询参数
     * @throws Exception
     */
    Response getRoleList(HttpServletRequest request, HttpServletResponse response, SysRoleDTO roleDTO) throws  Exception;

    /**
     * 获取角色信息
     * @param request
     * @param response
     * @param roleDTO 查询参数  roId不能为空
     * @throws Exception
     */
    Response getRoleInfo(HttpServletRequest request, HttpServletResponse response, SysRoleDTO roleDTO) throws  Exception;

    /**
     * 添加角色信息
     * @param request
     * @param response
     * @param roleDTO  待添加的角色信息
     * @throws Exception
     */
    Response addRole(HttpServletRequest request, HttpServletResponse response, SysRoleDTO roleDTO)  throws  Exception;

    /**
     * 编辑角色数据
     * @param request
     * @param response
     * @param roleDTO 待修改的角色信息
     * @throws Exception
     */
    Response editRole(HttpServletRequest request, HttpServletResponse response, SysRoleDTO roleDTO) throws  Exception;

    /**
     * 删除角色信息
     * @param request
     * @param response
     * @param roleDTO 待删除的角色信息
     * @throws Exception
     */
    Response deleteRole(HttpServletRequest request, HttpServletResponse response, SysRoleDTO roleDTO) throws  Exception;
}
